import request from '@/utils/request'

// 查询平台推广列表
export function listPingtaituiguang(query) {
  return request({
    url: '/system/pingtaituiguang/list',
    method: 'get',
    params: query
  })
}

// 查询平台推广详细
export function getPingtaituiguang(pttgId) {
  return request({
    url: '/system/pingtaituiguang/' + pttgId,
    method: 'get'
  })
}

// 新增平台推广
export function addPingtaituiguang(data) {
  return request({
    url: '/system/pingtaituiguang',
    method: 'post',
    data: data
  })
}

// 修改平台推广
export function updatePingtaituiguang(data) {
  return request({
    url: '/system/pingtaituiguang',
    method: 'put',
    data: data
  })
}

export function upztlist(data) {
  return request({
    url: '/system/pingtaituiguang/updatelist',
    method: 'post',
    data: data
  })
}

// 删除平台推广
export function delPingtaituiguang(pttgId) {
  return request({
    url: '/system/pingtaituiguang/' + pttgId,
    method: 'delete'
  })
}
